<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>注册 —— {{ global.name }}</title>
        <link rel="shortcut icon" href="{{ url_for("static", filename="images/favicon.ico") }}"/>
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <link rel="stylesheet" href="{{ url_for("static", filename = "AdminLTE/bower_components/bootstrap/dist/css/bootstrap.min.css") }}">
        <link rel="stylesheet" href="{{ url_for("static", filename = "AdminLTE/bower_components/font-awesome/css/font-awesome.min.css") }}">
        <link rel="stylesheet" href="{{ url_for("static", filename = "AdminLTE/bower_components/Ionicons/css/ionicons.min.css") }}">
        <link rel="stylesheet" href="{{ url_for("static", filename = "AdminLTE/dist/css/AdminLTE.min.css") }}">
        <link rel="stylesheet" href="{{ url_for("static", filename = "AdminLTE/plugins/iCheck/square/blue.css") }}">
        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
    </head>
    <body class="hold-transition register-page">
        <div class="register-box">
            <div class="register-logo">
                <a href="{{ url_for("fronted.index") }}">{{ global.name }}</a>
            </div>
            <div class="register-box-body">
                {% if message %}
                    <div class="callout callout-danger">
                        <p>{{ message }}</p>
                    </div>
                {% endif %}
                <p class="login-box-msg">注册账号</p>
                <form action="" method="post">
                    <div class="form-group has-feedback">
                        <input type="text" class="form-control" placeholder="用户名" name="username">
                        <span class="glyphicon glyphicon-user form-control-feedback"></span>
                    </div>
                    <div class="form-group has-feedback">
                        <input type="password" class="form-control" placeholder="密码" name="password">
                        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                    </div>
                    <div class="form-group has-feedback">
                        <input type="password" class="form-control" placeholder="重复密码" name="passwordr">
                        <span class="glyphicon glyphicon-log-in form-control-feedback"></span>
                    </div>
                    <div class="col-xs-4">
                        <button type="submit" class="btn btn-primary btn-block btn-flat">注册</button>
                    </div>
                </form>
                <p>已有账号？<a href="{{ url_for("fronted.user_login") }}" class="text-center">登录</a></p>
            </div>
        </div>
        <script src="{{ url_for("static", filename = "AdminLTE/bower_components/jquery/dist/jquery.min.js") }}"></script>
        <script src="{{ url_for("static", filename = "AdminLTE/bower_components/bootstrap/dist/js/bootstrap.min.js") }}"></script>
        <script src="{{ url_for("static", filename = "AdminLTE/plugins/iCheck/icheck.min.js") }}"></script>
    </body>
</html>